.grid {
	max-width: 82em;
	list-style: none;
	margin: 30px auto;
	padding: 0;
	display: flex;
	flex-flow: wrap;
}

.grid li {
	display: block;
	float: left;
	padding: 15px;
	width: 25%;
}

.grid li.shown,
.no-js .grid li,
.no-cssanimations .grid li {
	opacity: 1
}

.grid li a,
.grid li img {
	font-size: 20px;
	text-align: center;
	outline: 0;
	border: 0;
	display: block;
	max-width: 100%;
	color: #fff;
	/*font-weight: bold;*/
	border-radius: 6px;
	text-shadow: 0px 1px 10px rgba(0,0,0,.3);
}

.grid li img {	
	margin-bottom: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.grid li:hover img{	
	box-sizing: border-box;
	border: 1px solid #F84C4C;
}

.grid li a:hover{	
	color: #fff;
	text-shadow: 0px 1px 10px rgba(0,0,0,.9);
}

.grid.effect-1 li.animate {
	-webkit-animation: fadeIn .65s ease forwards;
	animation: fadeIn .65s ease forwards
}

@-webkit-keyframes fadeIn {
	0% {}
	100% {
		opacity: 1
	}
}

@keyframes fadeIn {
	0% {}
	100% {
		opacity: 1
	}
}

.grid.effect-2 li.animate {
	-webkit-transform: translateY(200px);
	transform: translateY(200px);
	-webkit-animation: moveUp .65s ease forwards;
	animation: moveUp .65s ease forwards
}

@-webkit-keyframes moveUp {
	0% {}
	100% {
		-webkit-transform: translateY(0);
		opacity: 1
	}
}

@keyframes moveUp {
	0% {}
	100% {
		-webkit-transform: translateY(0);
		transform: translateY(0);
		opacity: 1
	}
}

.grid.effect-3 li.animate {
	-webkit-transform: scale(.6);
	transform: scale(.6);
	-webkit-animation: scaleUp .65s ease-in-out forwards;
	animation: scaleUp .65s ease-in-out forwards
}

@-webkit-keyframes scaleUp {
	0% {}
	100% {
		-webkit-transform: scale(1);
		opacity: 1
	}
}

@keyframes scaleUp {
	0% {}
	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1
	}
}

.grid.effect-4 {
	-webkit-perspective: 1300px;
	perspective: 1300px
}

.grid.effect-4 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(400px) translateY(300px) rotateX(-90deg);
	transform: translateZ(400px) translateY(300px) rotateX(-90deg);
	-webkit-animation: fallPerspective .8s ease-in-out forwards;
	animation: fallPerspective .8s ease-in-out forwards
}

@-webkit-keyframes fallPerspective {
	0% {}
	100% {
		-webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg);
		opacity: 1
	}
}

@keyframes fallPerspective {
	0% {}
	100% {
		-webkit-transform: translateZ(0px) translateY(0px) rotateX(0deg);
		transform: translateZ(0px) translateY(0px) rotateX(0deg);
		opacity: 1
	}
}

.grid.effect-5 {
	-webkit-perspective: 1300px;
	perspective: 1300px
}

.grid.effect-5 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform-origin: 50% 50% -300px;
	transform-origin: 50% 50% -300px;
	-webkit-transform: rotateX(-180deg);
	transform: rotateX(-180deg);
	-webkit-animation: fly .8s ease-in-out forwards;
	animation: fly .8s ease-in-out forwards
}

@-webkit-keyframes fly {
	0% {}
	100% {
		-webkit-transform: rotateX(0deg);
		opacity: 1
	}
}

@keyframes fly {
	0% {}
	100% {
		-webkit-transform: rotateX(0deg);
		transform: rotateX(0deg);
		opacity: 1
	}
}

.grid.effect-6 {
	-webkit-perspective: 1300px;
	perspective: 1300px
}

.grid.effect-6 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform-origin: 0% 0%;
	transform-origin: 0% 0%;
	-webkit-transform: rotateX(-80deg);
	transform: rotateX(-80deg);
	-webkit-animation: flip .8s ease-in-out forwards;
	animation: flip .8s ease-in-out forwards
}

@-webkit-keyframes flip {
	0% {}
	100% {
		-webkit-transform: rotateX(0deg);
		opacity: 1
	}
}

@keyframes flip {
	0% {}
	100% {
		-webkit-transform: rotateX(0deg);
		transform: rotateX(0deg);
		opacity: 1
	}
}

.grid.effect-7 {
	-webkit-perspective: 1300px;
	perspective: 1300px
}

.grid.effect-7 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
	-webkit-animation: helix .8s ease-in-out forwards;
	animation: helix .8s ease-in-out forwards
}

@-webkit-keyframes helix {
	0% {}
	100% {
		-webkit-transform: rotateY(0deg);
		opacity: 1
	}
}

@keyframes helix {
	0% {}
	100% {
		-webkit-transform: rotateY(0deg);
		transform: rotateY(0deg);
		opacity: 1
	}
}

.grid.effect-8 {
	-webkit-perspective: 1300px;
	perspective: 1300px
}

.grid.effect-8 li.animate {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: scale(.4);
	transform: scale(.4);
	-webkit-animation: popUp .8s ease-in forwards;
	animation: popUp .8s ease-in forwards
}

@-webkit-keyframes popUp {
	0% {}
	70% {
		-webkit-transform: scale(1.1);
		opacity: .8;
		-webkit-animation-timing-function: ease-out
	}
	100% {
		-webkit-transform: scale(1);
		opacity: 1
	}
}

@keyframes popUp {
	0% {}
	70% {
		-webkit-transform: scale(1.1);
		transform: scale(1.1);
		opacity: .8;
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out
	}
	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1
	}
}
@media screen and (max-width:1200px) {
	.grid li {
		width: 33.3%
	}
}

@media screen and (max-width:800px) {
	.grid li {
		width: 50%
	}
}

@media screen and (max-width:400px) {
	.grid li {
		width: 100%
	}
}